package com.jt.www.dao.mapper.zq;

import com.jt.www.dao.BaseMapper;
import com.jt.www.model.zq.ZqContract;
import com.jt.www.model.zq.ZqParam;
import com.jt.www.model.zq.ZqVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ZqContractMapper extends BaseMapper<ZqContract> {
    List<ZqContract> selectByEfficacy();

    String selectSignByUserCodeAndBranchCode(@Param("idCode") String idCode, @Param("name") String name, @Param("branchCode") String branchCode);

    String selectPdfUrlByUserCodeAndBranchCode(@Param("userCode") String userCode, @Param("branchCode") String branchCode);

    ZqContract selectByIdCardNoAndBranchCode(@Param("idCardNo") String idCardNo, @Param("branchCode") String branchCode);

    ZqContract selectByUniquely(@Param("idCardNo") String idCardNo, @Param("name") String name, @Param("branchCode") String branchCode, @Param("productCode") String productCode);

    ZqContract selectByContractNo(String contractNo);

    List<ZqContract> selectByUserCode(String userCode);

    List<ZqVO> selectByParam(ZqParam zqParam);
}